﻿$(document).ready(function() {
    $('#my-slideshow').bjqs({
        'width': 740,
        'height': 317,
        'showMarkers': true,
        'showControls': true,
        'centerMarkers': true,
        'centerControls': true,
        'nextText': '<div class="icon-chevron-right icon-white"></div>',
        'prevText': '<div class="icon-chevron-left icon-white"></div>',
        'animation': 'fade',
        'responsive': true,
        'usecaptions' : true,
        'hoverpause' : true,
    });
    //=============================
  

});


function $f(Element) {
    return document.getElementById(Element);
}

function Isundefined(Obj, value) {
    if (typeof(Obj)== 'undefined'||Obj==null||Obj=='') {
        return value
    }
    else
        return Obj;
}

function commafy(nStr) {
    /*
    nStr = parseFloat(nStr).toFixed(2).toString();
    var x = nStr.split('.');
    var x1 = x[0];
    var x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1)) {
        x1 = x1.replace(rgx, '$1' + ',' + '$2');
    }
    return x1 + x2;*/
    return nStr;
}